(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2726],{2726:function(e,n,t){"use strict";t.r(n),t.d(n,{InlineForm:function(){return m}});var r=t(85893),i=t(67294),l=t(37148),c=t(59778),a=t(82213),s=t(93475),u=t(48775),o=t(30214),d=t.n(o),f=t(22234);let m=e=>{var n;let{children:t,type:o,autoSubscribeCountries:m,media:p,mailingList:h,forceMobile:g=!1,className:y}=e,k=(0,i.useId)(),[v,x]=(0,i.useState)(!1),b=m?null===(n=Object.values(m)[0])||void 0===n?void 0:n.fields:null,{country:E}=(0,u.S)(),{translator:$}=(0,f.I)(),N=e=>e&&("checkbox"===e.props.componentName||"checkbox"===e.props.name),j=()=>null!=b&&!!b.countries&&(b.countries.includes(E.toUpperCase())||b.countries.includes("ALL")),C=(0,i.useCallback)(e=>{x(e.target.checked)},[]),_=i.Children.map(t,e=>{let n=e.props.theme;if(i.isValidElement(e)&&N(e)){if(b&&j())return(0,r.jsx)(l.x,{size:"xs",children:b.text});let t=(0,r.jsxs)("div",{children:[e,(0,r.jsx)(l.x,{className:d().privacyLink,size:"xs",color:"dark"===n?"white":"gray",children:(0,r.jsx)(c.cE,{textTemplate:$.gettext("Your data is processed according to our {{privacy notice}}. You may unsubscribe at any time."),children:e=>[(0,r.jsx)(a.r,{href:"/privacy",children:e},1)]})})]});return i.cloneElement(t,{onChange:C})}return i.isValidElement(e)?i.cloneElement(e,{optIn:v,type:o,autoSub:b,media:p,mailingList:h,parentId:k}):e});return(0,r.jsx)(s.y,{id:k,forceMobile:g,className:y,children:_})}},30214:function(e){e.exports={privacyLink:"inline-form_privacyLink__RFsdd"}},93475:function(e,n,t){"use strict";t.d(n,{y:function(){return c}});var r=t(93967),i=t(67294);let l=(0,t(20551).Q)("inline-form"),c=({children:e,className:n,forceMobile:t,...c})=>i.createElement("form",{className:r(l,n,t&&`${l}--mobile`),...c},e)},59778:function(e,n,t){"use strict";t.d(n,{A0:function(){return i},cE:function(){return c},ft:function(){return l}});var r=t(67294);let i=e=>e.split(/({{.*?}})/g),l=e=>e.map(e=>{let n=e.match(/{{(.*)}}/);return n?n[1]:null}),c=({textTemplate:e,children:n})=>{let t=i(e),c=l(t),a=n(...c.filter(Boolean)),s=r.Children.map(t,(e,n)=>{let t=c[n];return null===t?e:a.shift()||t});return r.createElement(r.Fragment,null,s)}},82213:function(e,n,t){"use strict";t.d(n,{r:function(){return c}});var r=t(93967),i=t(67294);let l=(0,t(20551).Q)("link"),c=i.forwardRef(function({className:e,display:n="inline",href:t,target:c,onClick:a,htmlProps:s,children:u,color:o="blue",defaultSpacing:d=!0,textDecoration:f=!0,component:m},p){let h=m??"a";return i.createElement(h,{...s,className:r("a"!==h&&"unset",l,`${l}--display-${n}`,e,"gray"===o&&`${l}--gray`,"secondary-dark"===o&&`${l}--secondary-dark`,"light-gray"===o&&`${l}--light-gray`,"light-inverted"===o&&`${l}--light-inverted`,"light-blue"===o&&`${l}--light-blue`,!f&&`${l}--no-decoration`,!d&&`${l}--no-spacing`),href:t,ref:p,target:c,onClick:a},u)});c.displayName="Link"}}]);